﻿using System;
using CI.Models;

namespace CI.Services
{
    public class DiagrammingService : ModelBase, IDiagrammingServiceViewSide, IDiagrammingServiceViewModelSide
    {
        public event EventHandler<GraphLayoutEventArgs> Relayout;


        public void ForceLayout(GraphLayoutAlgorithmSettings settings)
        {
            var eh = Relayout;

            if (eh != null)
                eh(this, new GraphLayoutEventArgs(settings));
        }
    }
}